/*
 * Copyright (c) 2021. Moses All Right Reserved
 */

package com.moses.design_patterns.bride;

/**
 * @author Moses
 * @email shenhuohui@gmail.com
 * @date 2021/4/17 10:31
 */
public class Client {
    public static void main(String[] args) {
        Implementor implementor = new Implement1();
        AbstractFather son = new Son(implementor);
        son.stableMethod1();
        System.out.println("===============");
        son.stableMethod2();
        System.out.println("===============");
        AbstractFather grandSon = new GrandSon(implementor);
        grandSon.stableMethod1();
        System.out.println("===============");
        grandSon.stableMethod2();
    }
}
